package com.niiwoo.civet.trade.service.dubbo.kaola;

import com.alibaba.dubbo.config.annotation.Service;
import com.niiwoo.civet.trade.dto.response.kaola.KaoLaLiCaiReceiveDTO;
import com.niiwoo.civet.trade.service.koala.KaoLaLiCaiReceiveFacadeDubboService;
import com.niiwoo.civet.trade.service.local.kaola.KaoLaLiCaiReceiveFacadeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.Assert;

import java.util.Map;

/**
 * @author daizhiyue
 * @description 考拉理财异步通知 dubbo服务
 * @date 2017-12-25
 */
@Service(version = "1.0.0")
public class KaoLaLiCaiReceiveFacadeDubboServiceImpl implements KaoLaLiCaiReceiveFacadeDubboService {

    @Autowired
    KaoLaLiCaiReceiveFacadeService kaoLaLiCaiReceiveService;

    @Override
    public KaoLaLiCaiReceiveDTO processService(Map<String, Object> requestMap, String path) {
        Assert.notNull(requestMap, "请求参数requestMap缺失");
        Assert.notNull(path, "请求参数path缺失");
        return kaoLaLiCaiReceiveService.processService(requestMap, path);
    }

}
